[Unit]
Description=Kafka Service
After=network-online.target

[Service]
EnvironmentFile={{ kafka_home }}/kafka.environment
Type=forking
User=root
ExecStart={{ kafka_home }}/bin/kafka-server-start.sh -daemon {{ kafka_home }}/config/server.properties
ExecStop={{ kafka_home }}/bin/kafka-server-start.sh stop
Restart=on-failure

[Install]
WantedBy=multi-user.target
